import Vue from "vue";
import App from "./App.vue";
import router from "./router";

import store from "./store";
import "@/mock/mockServe.js";

import "swiper/css/swiper.css";

import { reqsearchList } from "@/api";
import { MessageBox } from "element-ui";
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;

import * as API from "@/api";

import Page from "@/components/Page.vue";
Vue.component(Page.name, Page);

import VueLazyload from "vue-lazyload";
Vue.use(VueLazyload);

Vue.config.productionTip = false;
new Vue({
  render: (h) => h(App),

  beforeCreate() {
    Vue.prototype.$bus = this;
    Vue.prototype.$API = API;
  },
  router,
  store,
}).$mount("#app");
